package com.yanqu.road.server.manager.activity.xingyou.inter;

import com.yanqu.road.entity.activity.youxing.CrossXingYouShanShuiUserData;
import com.yanqu.road.entity.activity.youxing.config.XingYouShanShuiGridInfo;
import com.yanqu.road.server.manager.activity.xingyou.ConfirmHandleResult;
import com.yanqu.road.server.manager.activity.xingyou.DiceHandleResult;
import com.yanqu.road.server.protocol.GameErrorCode;

public interface IXingYouGridHandler {

    void handle(XingYouShanShuiGridInfo gridInfo, int pos, int gridId, int endPos, boolean fly, DiceHandleResult result);

    default  void confirm(XingYouShanShuiGridInfo gridInfo, CrossXingYouShanShuiUserData userData, ConfirmHandleResult handleResult, long select, boolean isDrift){
        //throw new RuntimeException("事件不支持");
        handleResult.setRet(GameErrorCode.E_REQUEST_ARGUMENT_ERROR);
    }
}
